package org.rcy.ruicingmarket.resource;

import org.apache.ibatis.annotations.Param;
import org.rcy.framework.data.dao.BaseDao;

import java.util.List;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/10/27 15:38
 */

public interface ResourceGroupDao extends BaseDao<ResourceGroup> {
    public List<ResourceGroup> getResourceGroupByApiName(@Param("name") String name);

    public List<ResourceGroup> getResourceGroupsByRoleId(@Param("roleId") Long roleId);

    public List<ResourceGroup> getResourceGroupsByRoles(@Param("roles") List<Long> roles);

    public void apiBindResourceGroup(@Param("apiId") Long apiId,@Param("groupId")Long groupId);
}
